package org.shoukaiseki.test.graphql.service.imp;

import org.shoukaiseki.test.graphql.bean.User;
import org.shoukaiseki.test.graphql.dao.UserMapper;
import org.shoukaiseki.test.graphql.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {

	//Inject the usermapper proxy instance
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User getUser(int id) {
		return userMapper.getUser(id);
	}

}
